package cn.est.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

//阿里短信服务配置类
@Configuration
@ConfigurationProperties( prefix = "aliyun.sms") //prefix前缀根据application.yaml里面配置的阿里短信服务来写
public class SmsConfig {
    //下面这些属性要与web层application.yaml配置文件里属性名字一致
    private String accessKeyId;
    private String accessKeySecret;
    private String templateCode;
    private String signName;
    private String domain;
    //生成get/set方法 鼠标右键选Generate...——》Getter and Setter——》Ctrl多选把所有属性都选上——》OK
    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
    }

    public String getTemplateCode() {
        return templateCode;
    }

    public void setTemplateCode(String templateCode) {
        this.templateCode = templateCode;
    }

    public String getSignName() {
        return signName;
    }

    public void setSignName(String signName) {
        this.signName = signName;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }
}
